package alarm.ruiqi.com.alarm_pro.recevier;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;

import com.lidroid.xutils.util.LogUtils;

import alarm.ruiqi.com.alarm_pro.options.alarm.AlarmedActivity;


public class AlarmReceiver extends BroadcastReceiver {


    public AlarmReceiver() {
    }

    @Override
    public void onReceive(Context context, Intent intent) {

        LogUtils.i("===================闹钟已经响起===================");
        intent.setClass(context, AlarmedActivity.class);
        intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
        context.startActivity(intent);
    }
}
